public class Pro {
    public static void main(String[] args) {
        int i,j,temp;int[]a={25,24,12,78,101,96,28};
        for (i=0;i<a.length-1;i++){
            for (j=0;j<a.length-1;j++){
                if (a[j]>a[j+1]){
                    temp=a[j];
                    a[j]=a[j+1];
                    a[j+1]=temp;
                }
            }
        }
        System.out.println("冒泡排序后的数组为:");
        for (i=0;i<a.length;i++)System.out.print(a[i]+"");
    }

    }

